export const routes = [{
    // 首页
    path:"/",
    alias:"/home",
    component:()=>import("@views/home/home")
},{
    // 列表
    path:"/list",
    props:(route)=>{
        return{
            id:route.query.id
        }
    },
    component:()=>import("@views/list/list")
},{
    // 详情页
    path:"/details",
    props:(route)=>{
        return{
            id:route.query.id
        }
    },
    component:()=>import("@views/details/details")
},{
    // 购物车
    path:"/shopcar",
    component:()=>import("@views/shopcar/shopcar")
},{
    // 用户中心
    path:"/user",
    component:()=>import("@views/user/user")
},{
    // 注册
    path:"/register",
    component:()=>import("@views/register/register")
},{
    // 登录
    path:"/login",
    component:()=>import("@views/login/login")
}]